package com.ktwlsoft.fundmanage.domain.repository;

import com.ktwlsoft.fundmanage.domain.entity.DataDictionary;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 数据字典
 *
 * @author Name on 2019/9/4 16:13
 * @version 1.0
 */
public interface DataDictionaryRepository extends JpaRepository<DataDictionary,Long>{

    /**
      * 通过key查询数据 on 2019/9/5 10:23
      *
      * @param key key
      * @return List<DataDictionary>
      */
    List<DataDictionary> findByDicKey(String key);

    /**
      * 通过父id查询数据 on 2019/9/5 10:24
      *
      * @param parentId parentId
      * @return List<DataDictionary>
      */
    List<DataDictionary> findByParentId(Long parentId);
}